package com.ll.gulimall.authserver.feign;

import com.ll.common.utils.R;

import com.ll.gulimall.authserver.vo.UserLoginVo;
import com.ll.gulimall.authserver.vo.UserRegistVo;
import com.ll.gulimall.authserver.vo.WeiBoResVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo loginVo);

    @PostMapping("/member/member/weibo/login")
    public R login(@RequestBody WeiBoResVo weiBoResVo) throws Exception;

}
